package com.sy.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class A {

	public A() {
		System.out.println("A 被创建了");
	}


	private B b;

	@Autowired
	public void setB(B b) {
		this.b = b;
	}
}
